import { defineMock } from '@umijs/max';
import { LoginResult } from '@/interfaces/user';


let successResult:LoginResult = {
  success: true,
  message: '登录成功',
  data: 'xxxxxxx',
  userType: 'user',
};

export default defineMock({
  'POST /mock/v1/auth/login': (_, res) => {
    res.send(successResult);
  },
});